﻿using GGetTestService.Enums;
using System;

namespace GGetTestService.Extension
{
    /// <summary>
    /// 查询特性类
    /// </summary>
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Class, Inherited = true)]
    public class SearchAttribute : Attribute
    {
        /// <summary>
        /// 要查询的字段名称(与数据库中字段保持一致)
        /// </summary>
        public string SearchColumnName { get; set; }

        /// <summary>
        /// 查询时的操作符
        /// </summary>
        public OperatorEnum SearchOperator { get; set; }
    }
}